//
//  main.m
//  学生管理系统
//
//  Created by mir_yan on 2018/9/30.
//  Copyright © 2018年 hakeem. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MangeClass.h"
#import "Student.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        MangeClass * mange = [[MangeClass alloc] init];
        Student * s1 = [Student studentWithName:@"duan" no:1 score:10 dclass:@"sdf"];
        Student * s2 = [Student studentWithName:@"xiaolongxia" no:11 score:120 dclass:@"banji "];
        
        [mange addStudent:s1];
        [mange addStudent:s2];
        
        [mange removeStudent:11];
        
//        [mange updateStudent: 11];
        
        Student * stu = [mange searchStudentWithNumber:11];
        NSLog(@"%@", stu);
        [mange showAllStudent];
        
//        NSLog(@"Hello, World!");
    }
    return 0;
}
